package com.nbpt;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;

public class SettingActivity extends AppCompatActivity implements AdapterView.OnItemClickListener {
    ListView listView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        getSupportActionBar().setTitle("设置中心");
        listView = findViewById(R.id.listview);
        listView.setOnItemClickListener(SettingActivity.this);
    }
    @Override
    public void onItemClick(AdapterView<?> adapterView, View view, int i, long l){
        if(i==3){
            Intent intent = new Intent(SettingActivity.this, ContactActivity.class);
            startActivity(intent);
        }
    }

}
